package com.egao.common.module.validate.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@ApiModel(description = "验证规则")
@TableName("validate_rule")
@Data
public class ValidateRule {

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("验证模块")
    private String module;

    @ApiModelProperty("规则标题 显示code")
    private String titleCode;

    @ApiModelProperty("结果标题 显示code")
    private String resultCode;

    @ApiModelProperty("规则标题 显示文本")
    private String titleText;

    @ApiModelProperty("结果标题 显示文本")
    private String resultText;

    @ApiModelProperty("添加时间")
    private Date createTime;

    @ApiModelProperty("编辑时间")
    private Date updateTime;

    @ApiModelProperty("是否删除 0否 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty("验证模块文本")
    @TableField(exist = false)
    private String moduleLabel;

    @ApiModelProperty("验证规则子项")
    @TableField(exist = false)
    private List<ValidateRuleItem> validateRuleItemList;

}
